<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>选择题情况分析</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
	<script type="text/javascript" src="__JS__/jshelper.js"></script> 
	<script type="text/javascript" src="__JS__/jQuery/jquery.js"></script>
    <script type="text/javascript" src="__JS__/jQuery/jquery.form.js"></script>
    <!--  
<script   type= "text/javascript"> 
	function   subform(gourl){   
 	 var   gourl; 
  	form2.action=gourl; 
  	form2.submit(); 
	} 
</script> 
	<script type="text/JavaScript">
       $(function(){
           $('#form1').ajaxForm({
               //beforeSubmit:  function(){alert("before");},  // pre-submit callback
               success:       complete,  // post-submit callback
               error:function(){alert("error");},
               dataType: 'json'
           });
           
           function complete(data){
               if (data.status==1)
               {
               	window.location='__URL__/blanktdetail2/id/<?php echo ($testid); ?>';
               }else{
                   $('#result').html(data.info).show();
               }
           }
       });
       </script>-->
</head>

<body>
	<!-- layout::Auth:header::0 -->
    	<div class="container-fluid">
     		<div class="row-fluid">
  			  <!-- layout::Auth:leftmenu::0 -->
              	 <div class="span8">
                    <div class="hero-unit">
                  	<h1>改卷</h1>
                    <p style="font-size:12px">当前位置：
                        <a href='__APP__/index/index' >主页</a>>
                        <a href='__URL__/index' >后台管理</a>>
                        <a href='__URL__/choose1' >测试管理</a>>
                        <a href='__URL__/testcorrect' >选择课程</a>>
                        <a href='__URL__/test_correct/id/<?php echo ($courseid); ?>' >选择试题</a>>
                        <a href="">选择题情况分析</a>
                     </p>
                     </div>
                     <table width="100%" class="table table-striped table-bordered table-condensed">
                     	<thead>
                        	<tr>
                            	<th>类型</th>
                                <th>题号</th>
                                <th>答案</th>
                                <th>人数</th>
                            </tr>
                        </thead>
                        <tbody>
                        	<?php if(is_array($list1)): $i = 0; $__LIST__ = $list1;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): ++$i;$mod = ($i % 2 )?><tr>
                                	<td style="color:blue">单选</td>
                                	<td><?php echo ($vo["number"]); ?></td>
                                    <td><?php echo ($vo["answer"]); ?></td>
                                    <td><?php echo ($vo["count"]); ?></td>
                                </tr>
		<!--第<?php echo ($vo["number"]); ?>题 选<?php echo ($vo["answer"]); ?>的有<?php echo ($vo["count"]); ?>人<br>--><?php endforeach; endif; else: echo "" ;endif; ?>
                            <?php if(is_array($list2)): $i = 0; $__LIST__ = $list2;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): ++$i;$mod = ($i % 2 )?><tr>
                                	<td style="color:#0FF">多选</td>
                                	<td><?php echo ($vo["number"]); ?></td>
                                    <td><?php echo ($vo["answer"]); ?></td>
                                    <td><?php echo ($vo["count"]); ?></td>
                                </tr>
		<!--第<?php echo ($vo["number"]); ?>题 选<?php echo ($vo["answer"]); ?>的有<?php echo ($vo["count"]); ?>人<br>--><?php endforeach; endif; else: echo "" ;endif; ?>
                        </tbody>
                     </table>
					<a href="javascript:history.back()" class="btn btn-info" style=" width:80px;">返回</a>
				</div>
              </div>
             </div>
	<script src="__JS__/placeholderIEshow.js"></script>
</body>
</html>